package com.autotest.nore.controller;

import com.alibaba.fastjson2.JSONObject;
import com.autotest.nore.service.DashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/autotest/dashboard")
public class DashboardController {

    @Autowired
    private DashboardService dashboardService;

    @GetMapping("/get/{projectId}")
    public JSONObject getDashboardData(@PathVariable String projectId) {
        return dashboardService.getDashboardData(projectId);
    }

}
